package com.coffee.admin.api.supplier.service;

import com.coffee.admin.api.supplier.query.SupplierRolePermissionQuery;
import com.coffee.admin.api.supplier.result.SupplierRolePermissionResult;
import com.coffee.core.entity.Page;
import com.coffee.core.entity.PagerInfo;
import com.coffee.core.exception.BusinessException;

import java.util.List;
import java.util.Map;
import java.util.Set;


public interface SupplierRolePermissionService {

	Page<SupplierRolePermissionResult> getPager(SupplierRolePermissionQuery param, PagerInfo pr);
	
	Integer count(SupplierRolePermissionQuery param);
	
	SupplierRolePermissionResult getDetail(Integer id);
	
	List<SupplierRolePermissionResult> getList(SupplierRolePermissionQuery param, PagerInfo pr);
	
	List<SupplierRolePermissionResult> getList(SupplierRolePermissionQuery param);
	
	List<SupplierRolePermissionResult> getList();

	void delete(Integer id);

	void addOrUpdate(SupplierRolePermissionResult result)throws BusinessException;
	
	Map<Integer,SupplierRolePermissionResult> getItemMap(Set<Integer> idSet);
	
	Map<Integer,SupplierRolePermissionResult> getItemMap();
	
}